package org.springblade.develop;

import org.springblade.develop.support.ByCodeGenerator;
import org.springblade.develop.vo.SuperClassEnum;
import org.springblade.develop.vo.TemplateServiceStatus;
import org.springblade.develop.vo.TreeStatus;

/**
 * 代码生成器
 *
 * @author Chill
 */
public class CodeGenerator {

	/**
	 * @param args
	 * @author: QinLei
	 * @date: 2023年08月09日  17:55
	 */
	public static void main(String[] args) {
		ByCodeGenerator generator = new ByCodeGenerator();
		generator.setUrl("jdbc:mysql://127.0.0.1:3306/gruul_open?useUnicode=true&characterEncoding=utf-8&zeroDateTimeBehavior=convertToNull&useSSL=false&serverTimezone=GMT%2B8");
		generator.setUsername("root");
		generator.setPassword("123456");
		generator.setAuthor("sh");

		generator.setPackageName("test.client");
//		generator.setAuthor("qinlei");
		generator.setApiPackageDir("C:\\Users\\Administrator\\Desktop\\111\\api");
		generator.setServerPackageDir("C:\\Users\\Administrator\\Desktop\\111\\service");
		generator.setIncludeTable("t_mini_account");
		generator.setSchema("tenant");
		generator.setSuperClassEnum(SuperClassEnum.BASE_ENTITY);
//		generator.setTemplateServiceStatus(new TemplateServiceStatus(new TreeStatus("client_id", "id", "resource_ids"), true, true, true));
		generator.run();
	}

}
